package com.example.forum.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;


    private String title;


    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String content;

    @Schema(description = "是否是作者")
    private Boolean Own;

    // 关联对象 - 作者
    private User user;

    // 关联对象 - 板块
    private Board board;
}